<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image:  url("img/bj_31.jpg");
	
}
-->
</style>
<script>
	var b_zoom=false;
	function cl(){
	
	  if(!ismove){
	  b_zoom=!b_zoom;
		
		var bar=document.getElementById("bar");
		if(b_zoom){
			bar.src="img/home_872.jpg";
	
			//cols=top.frames[3].document.getElementById("contentMainFrameSet").cols="1,6,*";
			cols=parent.document.getElementById("contentMainFrameSet").cols="1,6,*"; 
		}else{

			bar.src="img/home_87.jpg";
			cols=parent.document.getElementById("contentMainFrameSet").cols="180,6,*";
		}
		}
	}
	
</script>	





<!-- 拖拽左边边框-->
<script>
	<!-- 查找坐标-->
	function checkX(e) {
        if (document.layers){
        	xCoord = e.x;
				}else if (document.all){
        	xCoord = event.clientX;
				}else if (document.getElementById){
        	xCoord = e.clientX;
        }
     return  xCoord;
}


//document.onmousemove = checkX;
//if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);}

<!-- 改变宽度-->
var dragapproved=false
var x,y
var cols=228;
var ismove=false;
function move(e){
    ismove=true;
	var cc=checkX(e);

	if (dragapproved){

		var width=parent.document.getElementById("contentMainFrameSet").cols;
		var iw=parseInt(width.substring(0,width.indexOf(",")));
		parent.document.getElementById("contentMainFrameSet").cols=String(iw+cc+",6,*");
		
		return false;
	}
}
function drags(){
	dragapproved=true
	
	document.onmousemove=move
	ismove=false;
}
document.onmousedown=drags
document.onmouseup=new Function("dragapproved=false")
document.onClick=new Function("dragapproved=false")

</script>
	
</head>

<body>
<table width="6" height="450" border="0" cellpadding="0" cellspacing="0" bgcolo="#000000">
  <tr>
    <td valign="middle"><img id="bar" style="cursor:e-resize" src="img/home_87.jpg" width="6" height="56" onclick="javascript:cl()"></td>
  </tr>
</table>
</body>
</html>
